com.supermap.ar.areffect.preset
类 ARGeoPrism
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
- com.supermap.ar.areffect.preset.ARGeoPrism
-
public class ARGeoPrism extends ARGeometry
AR棱柱对象 备注:该对象的底面(顶面)水平
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.supermap.ar.areffect.preset.ARGeometry
ARGeometry.ARGeometryType
-
从类继承的嵌套类/接口 com.supermap.ar.areffect.preset.BaseShape
BaseShape.MatType, BaseShape.Mode
-
-
构造器概要
构造器 构造器和说明 ARGeoPrism()构造方法 默认使用透明材质ARGeoPrism(BaseShape.MatType matType)构造方法
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 int[]addPart(GeoRegion geoRegion, java.util.List<java.util.List<java.lang.Float>> heightsList, float prismHeight)添加子对象intaddPart(java.util.List<Point3D> pointList, float prismHeight)添加子对象intaddPart(Point2Ds point2Ds, java.util.List<java.lang.Float> heightList, float prismHeight)添加子对象voidclear()清除所有对象GeoRegiongetGeoRegion()获取地理面对象BaseShapegetOutLine()获取轮廓线AREffectElementgetParentElement()获取父节点元素Point3DgetPartCenterPoint(int partIndex)获取指定索引的子对象的中心点Point2DsgetPartPoint2Ds(int index)获取指定索引的子对象的 地理坐标点集合对象floatgetPartVolume(int partIndex)获取指定索引的子对象体积java.util.List<java.lang.Float>getPrismHeightList()获取高度值信息集合 1个part对应一个棱柱,一个棱柱对应一个高度值voidreDrawByArPoint()重绘voidreDrawByGeoPoint()重绘(重绘高度不会更改)voidreDrawByNewHeight(java.util.List<java.lang.Float> prismHeightList)根据新高度重绘,不同part高度可不同booleanremovePart(int index)移除对应索引的子对象voidsetOutLine(BaseShape outLine)设置轮廓线voidsetParentNode(AREffectElement element)设置父节点voidsetParentNode(EffectView arView)设置父节点-
从类继承的方法 com.supermap.ar.areffect.preset.ARGeometry
addPoint3D, deletePoint3D, getPartCount, getPartPoint3Ds, getPartShape, getType, isEdit, resetGeometry, select, setEdit, setSelectionColor, setSelectionTextureMap, unSelect, updatePoint3D
-
从类继承的方法 com.supermap.ar.areffect.preset.BaseShape
getColor, getColorRGBA, getMetallic, getRadius, getReflectance, getRoughness, getSelectionColor, getSelectionTextureMap, getShapeMaterial, getShapeStyle, getTextureMap, isRenderable, isSelected, isShadowCaster, isShadowReceiver, setColor, setColor, setColor, setMetallic, setRadius, setReflectance, setRenderable, setRoughness, setShadowCaster, setShadowReceiver, setShapeStyle, setTextureMap, updateMaterial
-
-
-
-
构造器详细资料
-
ARGeoPrism
public ARGeoPrism()
构造方法 默认使用透明材质
-
ARGeoPrism
public ARGeoPrism(BaseShape.MatType matType)
构造方法- 参数:
matType- 材质类型(透明/不透明)
-
-
方法详细资料
-
addPart
public int addPart(java.util.List<Point3D> pointList, float prismHeight)
添加子对象- 参数:
pointList- 棱柱底面顶点集,按顺序首尾相连prismHeight- 棱柱高度- 返回:
-
addPart
public int addPart(Point2Ds point2Ds, java.util.List<java.lang.Float> heightList, float prismHeight)
添加子对象- 参数:
point2Ds-heightList-prismHeight- 棱柱高度- 返回:
-
addPart
public int[] addPart(GeoRegion geoRegion, java.util.List<java.util.List<java.lang.Float>> heightsList, float prismHeight)
添加子对象- 参数:
geoRegion-heightsList- 底面个点高度prismHeight- 棱柱高度- 返回:
- 返回添加子对象的索引数组
-
reDrawByArPoint
public void reDrawByArPoint()
重绘
-
reDrawByGeoPoint
public void reDrawByGeoPoint()
重绘(重绘高度不会更改)
-
reDrawByNewHeight
public void reDrawByNewHeight(java.util.List<java.lang.Float> prismHeightList)
根据新高度重绘,不同part高度可不同
-
removePart
public boolean removePart(int index)
移除对应索引的子对象- 参数:
index-- 返回:
-
clear
public void clear()
清除所有对象- 覆盖:
clear在类中ARGeometry
-
getOutLine
public BaseShape getOutLine()
获取轮廓线- 返回:
-
setOutLine
public void setOutLine(BaseShape outLine)
设置轮廓线- 参数:
outLine-
-
getGeoRegion
public GeoRegion getGeoRegion()
获取地理面对象- 返回:
-
getPartPoint2Ds
public Point2Ds getPartPoint2Ds(int index)
从类复制的说明:ARGeometry获取指定索引的子对象的 地理坐标点集合对象- 返回:
-
getPartVolume
public float getPartVolume(int partIndex)
获取指定索引的子对象体积- 返回:
-
getPartCenterPoint
public Point3D getPartCenterPoint(int partIndex)
获取指定索引的子对象的中心点- 参数:
partIndex-- 返回:
-
getPrismHeightList
public java.util.List<java.lang.Float> getPrismHeightList()
获取高度值信息集合1个part对应一个棱柱,一个棱柱对应一个高度值
- 返回:
- 高度值集合
-
setParentNode
public void setParentNode(AREffectElement element)
设置父节点- 参数:
element-
-
setParentNode
public void setParentNode(EffectView arView)
设置父节点- 参数:
arView-
-
getParentElement
public AREffectElement getParentElement()
获取父节点元素- 返回:
-
-